package cn.wit.front.controller;

import cn.wit.front.condition.RecruitInfoHistoryInfoCondition;
import cn.wit.front.service.RecruitInfoHistoryInfoService;
import cn.wit.utils.response.Result;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/job/recruitInfoHistoryInfo")
@CrossOrigin
@Api(tags = "招聘信息浏览记录")
public class RecruitInfoHistoryInfoController {
    private Logger logger = LoggerFactory.getLogger(RecruitInfoHistoryInfoController.class);
    @Autowired
    private RecruitInfoHistoryInfoService recruitInfoHistoryInfoService;

    @PostMapping("/insertRecruitInfoHistoryInfo")
    @ApiOperation("招聘信息历史记录新增")
    public Result insertRecruitInfoHistoryInfo(@RequestBody RecruitInfoHistoryInfoCondition condition) {
        return this.recruitInfoHistoryInfoService.insertRecruitInfoHistoryInfo(condition);
    }

    @PostMapping("/recommandRecruitInfo")
    @ApiOperation("招聘信息推荐")
    public Result recommandRecruitInfo(String username) {
        return recruitInfoHistoryInfoService.recommandRecruitInfo(username);
    }


}
